set(Qt6_DIR /home/huxiaoyun/Qt/6.5.3/gcc_64/lib/cmake/Qt6)
set(QT_DIR /home/huxiaoyun/Qt/6.5.3/gcc_64/lib/cmake/Qt6)
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(PROJECT_SOURCES
        main.cpp
        ConfigGUI.cpp
        ConfigGUI.h
        ConfigGUI.ui
        ConfigEdit.h
        ConfigEdit.cpp
        ConfigEdit.ui
        Icons.qrc
)
add_executable(XConfigGUI
        ${PROJECT_SOURCES}
    )
target_link_libraries(XConfigGUI PRIVATE
        Qt${QT_VERSION_MAJOR}::Widgets
        Qt${QT_VERSION_MAJOR}::Core
        config_client
)
# 设置 Debug 配置的可执行文件输出路径
set_out_path(XConfigGUI)
set_runtime_name(XConfigGUI)
